import pytest

from Page.Page import Page
from selenium import webdriver

@pytest.fixture
def driver():
    driver = webdriver.Edge()
    driver.implicitly_wait(10)
    driver.maximize_window()
    yield driver
    driver.close()

class Test_sogou():
    def test_sogou(self,driver):
        po = Page(driver)
        po.sogou_01()

if __name__ == '__main__':
    pytest.main()